import numpy as np

# 一行代码生成并保存
def quick_save():
    total_count = 7916
    
    # 生成数据
    neg_ints = np.random.randint(-4000, -1999, total_count // 2)
    pos_ints = np.random.randint(3000, 5001, total_count - total_count // 2)
    all_ints = np.concatenate([neg_ints, pos_ints])
    np.random.shuffle(all_ints)
    
    # 直接保存为逗号分隔
    with open("quick_integer_floats.txt", "w") as f:
        f.write(",".join(map(str, all_ints)))
    
    print("快速保存完成: quick_integer_floats.txt")
    return all_ints

quick_save()
